<?php 
/**
 *  Por Federico Pisarello - SisDev Software (c) 2013 - Buenos Aires, Argentina.
 * 	fpisarello@sisdevsoft.com
 */

session_start();
if(!isset($_SESSION['nombreUsuario']))
	Header("Location: index.html");
?>
<!DOCTYPE HTML>
<html>

<head>
	<title>--::[ Finta Pelle Gesti&oacute;n ]::--</title>
  	<meta name="description" content="finta pelle gestion" />
  	<meta name="keywords" content="finta, pelle, gestion" />
  	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  	
  	<style type="text/css" title="currentStyle">
		@import "js/datatables/css/demo_table_jui.css";
		@import "js/datatables/themes/smoothness/jquery-ui-1.8.4.custom.css";
		@import "js/jquery/themes/base/jquery.ui.autocomplete.css";
		@import "css/style.css";
	</style>
	
	<!-- JQuery -->
	<script type="text/javascript" src="js/jquery/jquery-1.7.1.min.js"></script>
  	<script type="text/javascript" src="js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
  	<script type="text/javascript" src="js/jquery/jquery.mask.js"></script>
  	<script type="text/javascript" src="js/jquery/jquery.numeric.js"></script>
  	<script type="text/javascript" src="js/jquery/jquery.validate.js"></script>
	
	<!-- Data Tables -->
	<script src="js/datatables/js/jquery.dataTables.js" type="text/javascript" ></script>
	<script src="js/datatables/js/jquery.dataTables.apis.js" type="text/javascript" ></script>
    
    <!-- Utils Script -->
    <script type="text/javascript" src="js/autoCompleteHelper.js"></script>
    <script type="text/javascript" src="js/utils.js"></script>
	
  	<!-- modernizr enables HTML5 elements and feature detects -->
  	<script type="text/javascript" src="js/jquery.sooperfish.js"></script>
  	<script type="text/javascript" src="js/modernizr-1.5.min.js"></script>
</head>

<body>
	<div id="main">
		<!-- Header -->
		<? include_once('layout/header.php');?>
		
		<!-- Body -->
		<div id="site_content">
			<?
				switch ($_REQUEST['pantalla']) {
					case 'resumenCtaCli':
						include_once('resumenCtaCli.php');
						break;
					case 'ordenFabricacion':
						include_once('ordenFabricacion.php');
						break;
					case 'recibos':
						include_once('recibos.php');
						break;
					case 'listadoRetenciones':
						include_once('listadoRetenciones.php');
						break;
					case 'listadoRecibos':
						include_once('listadoRecibos.php');
						break;
					case 'facturacion':
						include_once('facturacion.php');
						break;
					case 'subIvaVtas':
						include_once('subIvaVtas.php');
						break;
					case 'sucursales':
						include_once('sucursales.php');
						break;
					case 'picking':
						include_once('picking.php');
						break;
					case 'pedidos':
						include_once('pedidos.php');
						break;
					case 'pedidosSinStock':
						include_once('pedidosSinStock.php');
						break;
					case 'pedidosCliente':
						include_once('pedidosCliente.php');
						break;
					case 'pedidosProducto':
						include_once('pedidosProducto.php');
						break;						
					case 'listadoStock':
						include_once ('listadoStock.php');
						break;
					case 'articulos':
						include_once('articulos.php');
						break;
					case 'insumos':
						include_once('insumos.php');
						break;
					case 'clientes':
						include_once('clientes.php');
						break;	
					case 'proveedores':
						include_once('proveedores.php');
						break;	
					case 'usuarios':
						include_once('usuarios.php');
						break;
					case 'unidadMedida':
						include_once('unidadMedida.php');
						break;
				}
			?>
		</div>
		
		<!-- Footer -->
		<? include_once('layout/footer.php');?>
	</div>
</body>

<script type="text/javascript">
    $(document).ready(function() {
      $('ul.sf-menu').sooperfish();
    });
  </script>
</html>
